/*
 * @Description: 入口
 * @Author: xinqiao lxq1990.0716@qq.com
 * @Date: 2023-10-11
 * @LastEditors: xinqiao lxq1990.0716@qq.com
 * @LastEditTime: 2023-10-12
 */
import '@/assets/style/base.less'

import * as Pinia from 'pinia'
import { createSSRApp } from 'vue'

import App from './App.vue'
// import Rp from './utils/report-released-1.2.1.min.js'

// Rp.init({
//   namespace: 'ssc',
//   appKey: '1031e784d43c4bb596796bf092cf5f96',
//   appVersion: '1.0.0',
//   deviceKey: null,
//   userKey: '1',
//   clientId: '7a2a6182c10840e18c31c4e01512771e',
// })

export function createApp() {
  const app = createSSRApp(App)
  app.use(Pinia.createPinia())
  return {
    app,
    Pinia, // 此处必须将 Pinia 返回
  }
}
